import React from 'react'
import { ACCESS_TYPE_TEXT } from '@/common/constants'
export default () => {
  return [
    {
      title: "id",
      dataIndex: "id",
      align: "center",
    },
    {
      title: "名称",
      dataIndex: "name",
      align: "center",
    },
    {
      title: "排序",
      dataIndex: "sort",
      align: "center",
    },
    {
      title: "编码",
      dataIndex: "code",
      align: "center",
    },
    {
      title: "类型",
      dataIndex: "type",
      align: "center",
      render: (text:any) => ACCESS_TYPE_TEXT?.[text]
    },
    {
      title: "接口",
      dataIndex: "urls",
      align: "center",
    },
    {
      title: "前端路由",
      dataIndex: "router",
      align: "center",
    },
    {
      title: "权限标识",
      dataIndex: "permission",
      align: "center",
    },
  ]
}